package com.sec.etech.process.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sec.etech.common.ModelBase;
import lombok.Data;

import java.util.Date;

@Data
@TableName("proc_process")
public class ProcessCard extends ModelBase {
    @TableId
    private Long processid;
    private Long statusid;//0-未开始-,1-编制中,2-已完成,3-取消,4-存量,5-待入库
    private Long typeid;
    private String num;
    private String processname;
    private String versions;
    private Integer hasbom;
    private Integer hasnc;
    private Long parentid;
    private Integer isfiles;
    private Long componentid;
    private Long plantaskid;
    @TableField("priority4Pro")
    private Integer priority4Pro;
    private Long levelid;
    private Date drawfinishdate;
    private Date plandate;
    private Date processfinishdate;
    private Date finishdate;
    private Long designdprtid;
    private String designeruid;
    private Long checkeruid;
    private Long revieweruid;
    private String remark;
    private String abandontips;
    private String uploadseries;
    private Integer active;
    private Integer fileamount;
    private Long instanceid;
    private Long aproveduid;
    @TableField("material_no")
    private String materialNo;
    //流程类型 1:常规, 2:特殊
    @TableField("bpm_type")
    private Integer bpmType;

    @TableField(exist = false)
    private String direct;

    //修改单号
    @TableField(exist = false)
    private String amendnum;
    //修改单审定id
    @TableField(exist = false)
    private Long amendproveduid;

    //下一个版本号
    @TableField(exist = false)
    private String nextVersion;

    //重新生成工艺文件
    @TableField(exist = false)
    private boolean regenerate = false;
}
